
#include "core/utils.h"

#include <windows.h>
#include <process.h>

static int g_cpu_count = 0;

int ve_cpu_count()
{
	if( !g_cpu_count )
	{
		SYSTEM_INFO info;
		GetSystemInfo( &info );
		g_cpu_count = info.dwNumberOfProcessors;
		if( g_cpu_count < 1 )
			g_cpu_count = 1;
	}
	return g_cpu_count;
}

void ve_sleep( int msec )
{
	Sleep( msec );
}

int ve_get_time()
{
	return GetTickCount();
}
